import request from '@/utils/request'

// 查询fo_aerich列表
export function listAerich(query) {
  return request({
    url: '/yipaiju/aerich/list',
    method: 'get',
    params: query
  })
}

// 查询fo_aerich详细
export function getAerich(id) {
  return request({
    url: '/yipaiju/aerich/' + id,
    method: 'get'
  })
}

// 新增fo_aerich
export function addAerich(data) {
  return request({
    url: '/yipaiju/aerich',
    method: 'post',
    data: data
  })
}

// 修改fo_aerich
export function updateAerich(data) {
  return request({
    url: '/yipaiju/aerich',
    method: 'put',
    data: data
  })
}

// 删除fo_aerich
export function delAerich(id) {
  return request({
    url: '/yipaiju/aerich/' + id,
    method: 'delete'
  })
}
